import Koa from 'koa';
import { useController } from './router/index.js';
import { sync } from './db/index.js';

await sync()

//创建Koa实例
const app = new Koa()

useController(app)

//监听
app.listen(5000);
//打印服务器后端地址
console.log(`服务器运行于：http://localhost:5000`);

